package com.linkoog.devtools.execute.envfile.providers.yml;

import com.linkoog.devtools.execute.envfile.EnvFileConfig;
import com.linkoog.devtools.execute.envfile.providers.EnvFileParser;
import org.yaml.snakeyaml.Yaml;

public class YmlEnvFileParser implements EnvFileParser {

    private final Yaml yaml = new Yaml();


    @Override
    public EnvFileConfig parse(String content) {
        return yaml.loadAs(content, EnvFileConfig.class);
    }
}
